package com.example.user.service.contest;

import com.example.common.core.domain.TableDataInfo;
import com.example.user.domain.contest.dto.ContestQueryDTO;
import com.example.user.domain.contest.dto.ContestRankDTO;
import com.example.user.domain.contest.vo.ContestVO;

import java.util.List;

public interface ContestService {
    List<ContestVO> list(ContestQueryDTO contestQueryDTO);

    TableDataInfo redislist(ContestQueryDTO contestQueryDTO);

    String getFirstQuestion(Long contestId);

    String preQuestion(Long contestId, Long questionId);

    String nextQuestion(Long contestId, Long questionId);

    TableDataInfo rankList(ContestRankDTO contestRankDTO);
}
